/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package components;

import java.awt.Color;
import java.awt.Font;
import javax.swing.JLabel;

/**
 *
 * @author Sonia Tan
 */

public class Text extends JLabel{

   private Font font;
   private int fontSize = 14;

   public Text(){

       font = new Font("Arial", Font.BOLD, fontSize);
       setFont(font);
       setSize(150, 20);
       setForeground(Color.BLACK);


   }

   public void setFontSize(int a){
       font = new Font("Arial", Font.BOLD, a);
       setFont(font);
   }

   public void setS(int a,int b){
       setSize(a,b);
   }
   public void inText(String text, int x, int y){

        setText(text);
        setLocation(x,y);
   }


}
